package com.mt.mtyx.user.api;

import com.mt.mtyx.user.service.UserService;
import com.mt.mtyx.vo.user.LeaderAddressVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户提货地址信息远程调用相关接口
 *
 * @author WMT
 * @Date 2023/9/21 17:21
 */
@RestController
@RequestMapping("/api/user/leader")
public class LeaderAddressApiController {

    @Autowired
    private UserService userService;

    @GetMapping("/inner/getLeaderAddressByUserId/{userId}")
    public LeaderAddressVo getLeaderAddressByUserId(@PathVariable("userId") Long userId) {
        return userService.getLeaderAddressByUserId(userId);
    }
}
